package com.akcome.apollo.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.common.utils.bean.AkResult;
import org.springframework.ui.ModelMap;

import com.akcome.apollo.domain.BmpAccount;
import com.akcome.apollo.dto.SpeedDataResult;

/**
 * 用户账户信息Service接口
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
public interface BmpAccountService{

	BmpAccount save(BmpAccount bmpAccount);
	
	BmpAccount findOne(Long id);

	List<BmpAccount> findByUserId(Long userId);

	BmpAccount findByUserIdAndName(Long userId, String name);

	SpeedDataResult speedData(Long accountId, String type) throws Exception;

	AkResult delete(Long id);

	int countByIdAndUserId(Long id, Long userId);

	void homeSetting(ModelMap modelMap, Long c_accountId, HttpServletResponse response);

	void homeUserSetting(Map<String, Object> modelMap);
}
